<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Php curl tutorial &#8211; making http requests in php	</title>
	<atom:link href="https://www.binarytides.com/php-curl-tutorial-beginners/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/php-curl-tutorial-beginners/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Wed, 11 Mar 2015 06:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Happy Patrick		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-67867</link>

		<dc:creator><![CDATA[Happy Patrick]]></dc:creator>
		<pubDate>Wed, 11 Mar 2015 06:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-67867</guid>

					<description><![CDATA[is anyone here, live?]]></description>
			<content:encoded><![CDATA[<p>is anyone here, live?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: raheel		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-66098</link>

		<dc:creator><![CDATA[raheel]]></dc:creator>
		<pubDate>Wed, 16 Apr 2014 19:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-66098</guid>

					<description><![CDATA[Nice. but i don&#039;t understand in real life programming where do we need it ?
specially posting data ? Can&#039;t we just go to that website and fill form ?]]></description>
			<content:encoded><![CDATA[<p>Nice. but i don&#8217;t understand in real life programming where do we need it ?<br />
specially posting data ? Can&#8217;t we just go to that website and fill form ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tomb Raider		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65840</link>

		<dc:creator><![CDATA[Tomb Raider]]></dc:creator>
		<pubDate>Thu, 21 Nov 2013 00:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65840</guid>

					<description><![CDATA[Can we show output on browser while downloading a large file? I mean the progress of the download process.]]></description>
			<content:encoded><![CDATA[<p>Can we show output on browser while downloading a large file? I mean the progress of the download process.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jonas		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65378</link>

		<dc:creator><![CDATA[jonas]]></dc:creator>
		<pubDate>Sun, 28 Apr 2013 15:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65378</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65377&quot;&gt;Silver Moon&lt;/a&gt;.

Thank you for a super fast reply, and kind assistance! 

The only post field name and value corresponds to the product section id. I fond no page reference at all, even when looking at cookies. But this is not my normal field of expertise... Under Posting Data I see:

__Eventtarget  &#124;   _ctl0$_ctl0$MainContent$MainContent$btnNext

as well as __VIEWSTATE and __EVENTVALIDATION with long md5 type encoded textstrings.
Plus a bunch of other variables relating to the product items shown.

Maybe I could kindly ask you for a quick glance at www.4sound.se/section.aspx?id=1025001

It is the &quot;[Nästa Sida &#062;]&quot; a tag on the top of the page I want to trigger. Kindly let me know if I this is way out of my league or if it should be rather easy to accomplish.

Thank you again for your most appreciated help!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65377">Silver Moon</a>.</p>
<p>Thank you for a super fast reply, and kind assistance! </p>
<p>The only post field name and value corresponds to the product section id. I fond no page reference at all, even when looking at cookies. But this is not my normal field of expertise&#8230; Under Posting Data I see:</p>
<p>__Eventtarget  |   _ctl0$_ctl0$MainContent$MainContent$btnNext</p>
<p>as well as __VIEWSTATE and __EVENTVALIDATION with long md5 type encoded textstrings.<br />
Plus a bunch of other variables relating to the product items shown.</p>
<p>Maybe I could kindly ask you for a quick glance at <a href="http://www.4sound.se/section.aspx?id=1025001" rel="nofollow ugc">http://www.4sound.se/section.aspx?id=1025001</a></p>
<p>It is the &#8220;[Nästa Sida &gt;]&#8221; a tag on the top of the page I want to trigger. Kindly let me know if I this is way out of my league or if it should be rather easy to accomplish.</p>
<p>Thank you again for your most appreciated help!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65377</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Sun, 28 Apr 2013 14:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65377</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65376&quot;&gt;jonas&lt;/a&gt;.

the post_data does not appear to be correct.
first make the post request directly from your browser on the target website, and use Dom Inspector &#062; Network tab to find out the correct post field name and post field value. Also note the post target url.


Then use the url and post data to construct the curl post query in php.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65376">jonas</a>.</p>
<p>the post_data does not appear to be correct.<br />
first make the post request directly from your browser on the target website, and use Dom Inspector &gt; Network tab to find out the correct post field name and post field value. Also note the post target url.</p>
<p>Then use the url and post data to construct the curl post query in php.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jonas		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65376</link>

		<dc:creator><![CDATA[jonas]]></dc:creator>
		<pubDate>Sun, 28 Apr 2013 08:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65376</guid>

					<description><![CDATA[Thank you for these clear and well formated examples! 
I am having trouble trying to make a POST request to a external server to load the next page. The starting page has:

 

you would normally click on, with the corresponding script:

 function __doPostBack(eventTarget, eventArgument) {
 if (!theForm.onsubmit &#124;&#124; (theForm.onsubmit() != false)) {
     theForm.__EVENTTARGET.value = eventTarget;
     theForm.__EVENTARGUMENT.value = eventArgument;
     theForm.submit();
  }
}

Setting line 17 of the &quot;POST request&quot; example to
$post_data = &#039;theForm.__EVENTTARGET.value=_ctl0$_ctl0$MainContent$MainContent$btnNext&#039;;
or
$post_data = &#039;theForm.__EVENTTARGET.value=_ctl0$_ctl0$MainContent$MainContent$btnNext&#038;theForm.__EVENTARGUMENT.value=&quot;&quot;&#039;;

only produces a blank screen.]]></description>
			<content:encoded><![CDATA[<p>Thank you for these clear and well formated examples!<br />
I am having trouble trying to make a POST request to a external server to load the next page. The starting page has:</p>
<p>you would normally click on, with the corresponding script:</p>
<p> function __doPostBack(eventTarget, eventArgument) {<br />
 if (!theForm.onsubmit || (theForm.onsubmit() != false)) {<br />
     theForm.__EVENTTARGET.value = eventTarget;<br />
     theForm.__EVENTARGUMENT.value = eventArgument;<br />
     theForm.submit();<br />
  }<br />
}</p>
<p>Setting line 17 of the &#8220;POST request&#8221; example to<br />
$post_data = &#8216;theForm.__EVENTTARGET.value=_ctl0$_ctl0$MainContent$MainContent$btnNext&#8217;;<br />
or<br />
$post_data = &#8216;theForm.__EVENTTARGET.value=_ctl0$_ctl0$MainContent$MainContent$btnNext&amp;theForm.__EVENTARGUMENT.value=&#8221;&#8221;&#8216;;</p>
<p>only produces a blank screen.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65375</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 15:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65375</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65374&quot;&gt;Wayne L.&lt;/a&gt;.

there was an error.
please check now.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65374">Wayne L.</a>.</p>
<p>there was an error.<br />
please check now.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Wayne L.		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65374</link>

		<dc:creator><![CDATA[Wayne L.]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 15:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65374</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65373&quot;&gt;Silver Moon&lt;/a&gt;.

I do not see a section that says using cookies.  In fact the article for me cuts off after the post section.

&quot;The important options to set in a POST request are POST=true and POSTFIELDS=post_data. The first option tells curl that we want to make a P&quot; &#060;-- Cuts off here regardless of what browser I view the article in.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65373">Silver Moon</a>.</p>
<p>I do not see a section that says using cookies.  In fact the article for me cuts off after the post section.</p>
<p>&#8220;The important options to set in a POST request are POST=true and POSTFIELDS=post_data. The first option tells curl that we want to make a P&#8221; &lt;&#8211; Cuts off here regardless of what browser I view the article in.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/php-curl-tutorial-beginners/comment-page-1/#comment-65373</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 13:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3346#comment-65373</guid>

					<description><![CDATA[thanks for pointing out. added the missing content in the &quot;using cookies&quot; section]]></description>
			<content:encoded><![CDATA[<p>thanks for pointing out. added the missing content in the &#8220;using cookies&#8221; section</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
