Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo ich möchte über mein Programm (mfc 6,c++, visual studio 6.0) eine http request senden der ca. so aussieht:

Beispiel:

http://www.sms77.de/gateway/?u=benutzer&p=passwort&to=00491609876543&text=

meine%20erste%20nachricht&type=quality&from=sms77.de

Damit versende ich dann SMs.

Ich habe CInternetSession benutzt und dann CHttpConnection, anschließend OpenRequest und dort das Beipsiel oben(natürlich mit Parametern) rein. Es wird aber nicht gesendet :(

Hat wer nen Tipp? :)

Grüße.

Hm, irgendwie habe ich keine Ahnugn wie ich bei OpneRequest Rückgabewert prüfen soll :(

Hier mal mein Code

	CInternetSession* meineSession;

	try

	{

		meineSession = new CInternetSession();

	}

	catch(CInternetException* e)

	{

		e->ReportError();

		e->Delete();

		AfxMessageBox("CInternetException konnte nicht gestartet werden.(1)");

		PostQuitMessage(0);

	}


	CHttpConnection* meineHttpCon;

	meineHttpCon = meineSession->GetHttpConnection("https://www.sms77.de");

	if(meineHttpCon == NULL)

	{

		AfxMessageBox("CHttpConnection konnte nicht gestartet werden.(2)");

		PostQuitMessage(0);

	}


	meineHttpCon->OpenRequest(0,"http://www.sms77.de/gateway/?u=benut...09876543&text=meine%20erste%20nachricht&type=quality&from=sms77. de");

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.